import request from '@/utils/request';
export async function signConfig(data) {
  const res = await request.post('/sign/signConfig', data);
  if (res.data.code === 0) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}
export async function signLog(data) {
  const res = await request.post('/sign/signLog', data);
  if (res.data.code === 0) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}
// 修改签到配置
export async function setSignConfig(data) {
  const res = await request.post('/sign/setSignConfig', data);
  if (res.data.code === 0) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}
